<:!:/><!--
/**
 * @file edit.html
 * @author Alejandro Dario Simi
 * @date $Date: 2014-06-03 03:40:32 +0000 (Tue, 03 Jun 2014) $
 *
 * $Id: edit.html 112 2014-06-03 03:40:32Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/skins/Skoll/actions/rule/dor/edit.html $
 */
--><::/><div class="InfoBox">
	<div class="Row">
		<div class="Label"><:TR:/>label_rule<::/>:</div>
		<div class="Values"><a href="?action=<:VAR:/>WC_ACTION_RULE_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&rule=<:VAR:/>info_rule_id<::/>"><:VAR:/>info_rule_name<::/></a></div>
	</div>
	<div class="Row">
		<div class="Label"><:TR:/>label_name<::/>:</div>
		<div class="Values"><:VAR:/>info_name<::/></div>
	</div>
	<div class="Row">
		<div class="Label"><:TR:/>label_type<::/>:</div>
		<div class="Values"><:VAR:/>info_type<::/></div>
	</div>
	<div class="Row">
		<div class="Label"><:TR:/>label_mode<::/>:</div>
		<div class="Values"><:VAR:/>info_mode<::/></div>
	</div>
</div>

<:IF:var=info_mode:value=MOVE:/>
<form action="#" method="get" onsubmit="Skoll.actions.rule.dor.editMOVE(this)">
	<input type="hidden" id="ruleid" value="<:VAR:/>info_rule_id<::/>"/>
	<input type="hidden" id="actionid" value="<:VAR:/>info_id<::/>"/>
	<!--div class="Title">test form</div>
	<div class="Help">
		some help text.<br/>
		some help text.<br/>
		some help text some help text.<br/>
		some help text.<br/>
	</div-->
	<div class="Fields">
		<div class="Field">
			<div class="Label"><:TR:/>label_name<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="name" value="<:VAR:/>info_name<::/>"/></div>
			<div class="Description"></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_directory<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="directory" value="<:VAR:/>directory_name<::/>" class="Skoll-autocomplete-directories"/></div>
			<div class="Description"><:ISSET:var=target_id:/><a target="_blank" href="?action=<:VAR:/>WC_ACTION_TAG_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&tag=<:VAR:/>target_id<::/>"><:TR:/>label_go_to<::/></a><::/></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_tag<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="tags" value="<:OVER:list=tags:/><:VAR:/>name<::/>, <::/>" class="Skoll-autocomplete-tags"/></div>
			<div class="Description"></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_status<::/></div>
			<div class="Required">*</div>
				<div class="Value">
					<select id="status">
						<option value="E"<:IF:var=action_status:value=E:/> selected="selected"<::/>><:TR:/>label_enabled<::/></option>
						<option value="D"<:IF:var=action_status:value=D:/> selected="selected"<::/>><:TR:/>label_disabled<::/></option>
					</select>
				</div>
			<div class="Description"></div>
		</div>
	</div>
	<div class="Buttons">
		<input type="submit" value="<:TR:/>button_save<::/>"   onclick=""/>
		<input type="submit" value="<:TR:/>button_return<::/>" onclick="document.location.href='?action=<:VAR:/>WC_ACTION_RULE_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&rule=<:VAR:/>info_rule_id<::/>';return false;"/>
	</div>
</form>
<::/>
<:IF:var=info_mode:value=CMOVE:/>
EDIT CMOVE
<::/>
<:IF:var=info_mode:value=TAGGER:/>
<form action="#" method="get" onsubmit="Skoll.actions.rule.dor.editTAGGER(this)">
	<input type="hidden" id="ruleid" value="<:VAR:/>info_rule_id<::/>"/>
	<input type="hidden" id="actionid" value="<:VAR:/>info_id<::/>"/>
	<!--div class="Title">test form</div>
	<div class="Help">
		some help text.<br/>
		some help text.<br/>
		some help text some help text.<br/>
		some help text.<br/>
	</div-->
	<div class="Fields">
		<div class="Field">
			<div class="Label"><:TR:/>label_name<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="name" value="<:VAR:/>info_name<::/>"/></div>
			<div class="Description"></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_directory<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="directory" value="<:VAR:/>directory_name<::/>" class="Skoll-autocomplete-directories"/></div>
			<div class="Description"><:ISSET:var=target_id:/><a target="_blank" href="?action=<:VAR:/>WC_ACTION_TAG_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&tag=<:VAR:/>target_id<::/>"><:TR:/>label_go_to<::/></a><::/></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_tag<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="tags" value="<:OVER:list=tags:/><:VAR:/>name<::/>, <::/>" class="Skoll-autocomplete-tags"/></div>
			<div class="Description"></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_status<::/></div>
			<div class="Required">*</div>
				<div class="Value">
					<select id="status">
						<option value="E"<:IF:var=action_status:value=E:/> selected="selected"<::/>><:TR:/>label_enabled<::/></option>
						<option value="D"<:IF:var=action_status:value=D:/> selected="selected"<::/>><:TR:/>label_disabled<::/></option>
					</select>
				</div>
			<div class="Description"></div>
		</div>
	</div>
	<div class="Buttons">
		<input type="submit" value="<:TR:/>button_save<::/>"   onclick=""/>
		<input type="submit" value="<:TR:/>button_return<::/>" onclick="document.location.href='?action=<:VAR:/>WC_ACTION_RULE_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&rule=<:VAR:/>info_rule_id<::/>';return false;"/>
	</div>
</form>
<::/>
<:IF:var=info_mode:value=COLLECTOR:/>
EDIT COLLECTOR
<::/>
<:IF:var=info_mode:value=VMOVE:/>
<form action="#" method="get" onsubmit="Skoll.actions.rule.dor.editVMOVE(this)">
	<input type="hidden" id="ruleid" value="<:VAR:/>info_rule_id<::/>"/>
	<input type="hidden" id="actionid" value="<:VAR:/>info_id<::/>"/>
	<!--div class="Title">test form</div>
	<div class="Help">
		some help text.<br/>
		some help text.<br/>
		some help text some help text.<br/>
		some help text.<br/>
	</div-->
	<div class="Fields">
		<div class="Field">
			<div class="Label"><:TR:/>label_name<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="name" value="<:VAR:/>info_name<::/>"/></div>
			<div class="Description"></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_directory<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="directory" value="<:VAR:/>directory_name<::/>" class="Skoll-autocomplete-directories"/></div>
			<div class="Description"><:ISSET:var=target_id:/><a target="_blank" href="?action=<:VAR:/>WC_ACTION_TAG_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&tag=<:VAR:/>target_id<::/>"><:TR:/>label_go_to<::/></a><::/></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_tag<::/></div>
			<div class="Required">*</div>
			<div class="Value"><input type="text" id="tags" value="<:OVER:list=tags:/><:VAR:/>name<::/>, <::/>" class="Skoll-autocomplete-tags"/></div>
			<div class="Description"></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_status<::/></div>
			<div class="Required">*</div>
				<div class="Value">
					<select id="status">
						<option value="E"<:IF:var=action_status:value=E:/> selected="selected"<::/>><:TR:/>label_enabled<::/></option>
						<option value="D"<:IF:var=action_status:value=D:/> selected="selected"<::/>><:TR:/>label_disabled<::/></option>
					</select>
				</div>
			<div class="Description"></div>
		</div>
	</div>
	<div class="Buttons">
		<input type="submit" value="<:TR:/>button_save<::/>"   onclick=""/>
		<input type="submit" value="<:TR:/>button_return<::/>" onclick="document.location.href='?action=<:VAR:/>WC_ACTION_RULE_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&rule=<:VAR:/>info_rule_id<::/>';return false;"/>
	</div>
</form>
<::/>

<script type="text/javascript">
	$(function(){
		Skoll.actions.topbar.setPath("<:VAR:/>PATH<::/>");
	});	
</script>
